#!/bin/bash

# 设置MariaDB的yum源
curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash

# 设置Percona的yum源
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm -y

# 刷新本地yum源的缓存
yum clean all
yum make cache

# 安装Percona-Server
yum install Percona-Server-server-57 -y

# 安装maxscale
yum install maxscale -y

# 安装pmm客户端
yum install pmm-client -y

echo 'Complete OK'